<?php
//执行编辑操作
//账号
$username=$_GET["username"];
//密码
$password=$_GET["password"];
//电话
$tel=$_GET["tel"];
//地址
$address=$_GET["address"];
//性别
$sex=$_GET["sex"];
//id
$id=$_GET["id"];

require_once 'database.php';

$sql="UPDATE `test`.`stu` SET `username` = '$username', `password` = '$password', `tel` = '$tel', `address` = '$address', `sex` = '$sex' WHERE `id` = $id";

$conn->query($sql);

header("Location:index.php");
